<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="三联表单" bodyClass="white-bg" libs=["bootstrapSelect"]/>
<div class="wrapper wrapper-content ibox-content">
    <@f.form id="task-form-complete" class="form-horizontal">
    <input name="id" value="${project.projectCode}" type="hidden">

    <h4 class="form-header h4"><@ctx.i18n text = "基本信息"/></h4>

    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "工程编号"/>：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <!--<span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->

                        <input class="form-control" name="projectCode" value="${project.projectCode?default('')}" type="text" readonly >
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "行政区划"/>：</label>
                <div class="col-sm-8">


                    <@f.treeselect id="wholeName" name="region" boxTitle="请选择行政区划" url="sys/area/treeData"  keyName="wholeName" keyId="name"
                    labelValue="${project.region}" value="${project.region?default('')}"
                    checked=true correlationId="parentId"  placeholder="请选择行政区划"/>
                    <!--<input class="form-control" name="region" value="${project.region?default('')}" type="text"  >-->
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "工程类别"/>：</label>
                <div class="col-sm-8">
                    <input class="form-control" name="projectType" value="${project.projectType?default('')}" type="text"  >
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "工程名称"/>：</label>
                <div class="col-sm-8">
                    <input class="form-control" name="projectName" value="${project.projectName?default('')}" type="text"  >
                </div>
            </div>
        </div>
        <!--<div class="col-sm-6">-->
        <!--<div class="form-group">-->
        <!--<label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "登记员"/>：</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input class="form-control" name="registerName" value="" type="text"  >-->

        <!--</div>-->
        <!--</div>-->
        <!--</div>-->
    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label">
                    <span style="color: red; ">*</span>状态：</label>
                <div class="col-sm-8">
                    <!--<@f.radio name="projectStatus" dictType="project_status" value="0"/>-->
                    <@f.radio name="projectStatus" dictType="project_status" value="${project.projectStatus}" />
                </div>
            </div>
        </div>
    </div>


</div>




</@f.form>
<div class="hr-line-dashed"></div>
<div class="row" style="text-align: center;" id="_addTab">

    <button type="button" class="btn btn-sm btn-primary" onclick="opt.form.submit()"><i class="fa fa-check"></i><@ctx.i18n text = "保存"/></button>&nbsp;
    <button type="button" class="btn btn-sm btn-danger" onclick="opt.modal.closeTab()"><i class="fa fa-reply-all"></i><@ctx.i18n text = "关闭"/></button>
</div>
</div>
<@footer>
<script type="text/javascript">
    var prefix = baseURL + "pms/project";

    $('#tipBut button').click(function(){
        $('#comment').text($(this).text())
    });

    $("#task-form-complete").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if (opt.validate.form()) {
            opt.operate.saveTab(prefix + "/edit", $('#task-form-complete').serialize());
        }
    }
</script>
</@footer>
</@pageTheme>